class GoodItem {
  int? id;
  String? productSn;
  int? categoryId;
  String? category;
  String? thumbnail;
  String? title;
  String? marketPrice;
  String? price;
  int? stock;
  int? sales;
  int? integral;

  GoodItem(
      {this.id,
      this.productSn,
      this.categoryId,
      this.category,
      this.thumbnail,
      this.title,
      this.marketPrice,
      this.price,
      this.stock,
      this.sales,
      this.integral});

  GoodItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    productSn = json['product_sn'];
    categoryId = json['category_id'];
    category = json['category'];
    thumbnail = json['thumbnail'];
    title = json['title'];
    marketPrice = json['market_price'];
    price = json['price'];
    stock = json['stock'];
    sales = json['sales'];
    integral = json['integral'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['product_sn'] = this.productSn;
    data['category_id'] = this.categoryId;
    data['category'] = this.category;
    data['thumbnail'] = this.thumbnail;
    data['title'] = this.title;
    data['market_price'] = this.marketPrice;
    data['price'] = this.price;
    data['stock'] = this.stock;
    data['sales'] = this.sales;
    data['integral'] = this.integral;
    return data;
  }
}